package com.woshua.gifmodel;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;

import com.woshua.gifmodel.core.GifDecoder;

import java.io.IOException;

public class MainActivity extends AppCompatActivity {

    private ImageView imageView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        imageView=findViewById(R.id.imageView);

        try {
            GifDecoder.with(this).load(this.getAssets().open("test2.gif")).into(imageView);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
